import math
from turtledemo.paint import switchupdown

# xinqing = float(input('今天心情值是：'))
# if xinqing > 0 and xinqing < 100:
#     print('还行')
# elif xinqing > 100 and xinqing < 1000:
#     print('不错1')
# elif (xinqing > 0 and xinqing < 10000) or xinqing  > 10001:
#     print('不错2')
# elif not xinqing > 0:
#     print('不好')
# arr = [1,2]
# arr.append(3)
# maxArr = max(arr)
# print(arr,maxArr)

# obj = {
#     'name':'2121',
#     'age':12,
#     ("name",'2'):'221212',
#     ("name",'2','333'):'221212444',
# }
# print(obj['name'])
# print(obj[("name",'2')])
# print(obj[("name",'2','333')])

# for item in range(1,11):
#     print(item)
# array = [{"name":'2'},{"name":'3'},{"name":'4'},{"name":'5'}]
# for item in array:
#     if item['name'] == '2':
#         print(item['name'])

# total = 0
# for item in range(0,101):
#     total = total + item
# print(total)

# print('我是一个求平均值的程序')
# userInput = input('请输入数字，输入q停止')
# total = 0
# count = 0
# while userInput != 'q':
#     total += float(userInput)
#     count += 1
#     userInput = input('请再次输入数字，输入q停止')
#     print(userInput)
# # 当等于q的时候截至才进行计算平均值
# if count == 0:
#     pingjunNum = 0
# else:
#     pingjunNum = total / count
# print(total, pingjunNum)

# name = '小明'
# age='21岁'
# str1 = '''123213
# 3123132'''+age+'''
# 51313
# 51313
# 51313
# 51313
# 51313
# 51313
# '''
# print(str1)

# name = '小明'
# age='21岁'
# str1 = '''123213
# 3123132{name}
# 51313{age}
# 51313
# 51313
# 51313
# 51313
# 51313
# '''.format(name = name,age=age)
# print(str1)

# name = '小明'
# age='21岁'
# str1 = '''123213
# 3123132{0}
# 51313{1}
# 51313
# 51313
# 51313
# 51313
# 51313
# '''.format(name,age)
# print(str1)

# name = '小明'
# age='21岁'
# str1 = f'''123213
# 3123132{name}
# 51313{age}
# 51313
# 51313
# 51313
# 51313
# 51313
# '''
# print(str1)

# array = {'a':'222','b':'333'}
# for zimu,num in array.items():
#     # print(zimu+'你好',num)
#     print('{0}您好,{1}数字'.format(zimu,num))

def fun(a,b):
    res = a + b
    return res
funRes = fun(1,4)
print(funRes)







